<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8" />
    <title>06.闭包原型链事件机制</title>
</head>

<body>
</body>
<script type="text/javascript">
    for (var i = 0; i < 5; i++) {
        (function (x) {
            setTimeout(() => {
                console.log("seti=", +x++)
            }, 4000)
        })(i)

    }
    console.log("i=" + i)
</script>

</html>